package com.pearadmin.pro.modules.stu.rest;

import com.pearadmin.pro.common.aop.annotation.Log;
import com.pearadmin.pro.common.constant.ControllerConstant;
import com.pearadmin.pro.common.web.base.BaseController;
import com.pearadmin.pro.common.web.domain.Result;
import com.pearadmin.pro.modules.stu.dto.ManageDto;
import com.pearadmin.pro.modules.stu.param.StuManageVo;
import com.pearadmin.pro.modules.stu.service.StuOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@Api(tags = {"学生管理"})
@RestController
@RequestMapping(ControllerConstant.ADMIN + "stu/stuManage")
public class StuManageController extends BaseController {
    @Resource
    private StuOrderService stuOrderService;

    /**
     * 查询学生列表
     *
     * @param vo 查询参数
     * @return {@link Result}
     */
    @GetMapping("/page")
    @Log(title = "管理列表")
    @ApiOperation(value = "管理列表")
    public Result<ManageDto> managePage(StuManageVo vo) {
        return success(stuOrderService.managePage(vo));
    }


}
